home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 February: Tool Chest / Dev.CD Feb 00 TC.toast / pc / tool chest / macapp / install macapp r13u4 / Apple Frameworks / MacApp / Examples / DemoDialogs / MDemoDialogs.cpp / MDemoDialogs.cpp
Encoding:
C/C++ Source or Header  |  1998-10-13  |  1.6 KB  |  83 lines  |  [TEXT/CWIE]

  1. //----------------------------------------------------------------------------------------
  2. // MDemoDialogs.cp
  3. // Copyright © 1988-98 by Apple Computer, Inc. All rights reserved.
  4. //----------------------------------------------------------------------------------------
  5.  
  6. /*
  7.     Change History:
  8.         07/16/98    [TY] Added high-level exception handling.
  9. */
  10.  
  11. #ifndef __UDEMODIALOGS__
  12. #include "UDemoDialogs.h"
  13. #endif
  14.  
  15. // MacApp
  16.  
  17. #ifndef __UDIALOG__
  18. #include "UDialog.h"
  19. #endif
  20.  
  21. #ifndef __UDRAGDROP__
  22. #include "UDragDrop.h"
  23. #endif
  24.  
  25. #ifndef __UFLOATWINDOW__
  26. #include "UFloatWindow.h"
  27. #endif
  28.  
  29. #ifndef __UGEOMETRY__
  30. #include "UGeometry.h"
  31. #endif
  32.  
  33. #ifndef __UGRIDVIEW__
  34. #include "UGridView.h"
  35. #endif
  36.  
  37. #ifndef __UPRINTING__
  38. #include "UPrinting.h"
  39. #endif
  40.  
  41. #ifndef __UTEVIEW__
  42. #include "UTEView.h"
  43. #endif
  44.  
  45. //----------------------------------------------------------------------------------------
  46. // main: 
  47. //----------------------------------------------------------------------------------------
  48. void main()
  49. {
  50.     try
  51.     {
  52.         InitUMacApp(6);                // Initialize MacApp; 6 calls to MoreMasters
  53.     
  54.         InitUTEView();
  55.         InitUDialog();
  56.         InitUDragManager();
  57.         InitUGridView();
  58.         InitUFloatWindow();
  59.         InitUPrinting();
  60.         
  61.         TTestApplication aTestApplication;
  62.         aTestApplication.Run();
  63.     }
  64.     catch(CException_AC& theException)
  65.     {
  66.         DoCatchMessageAndStop_AC(theException);
  67.         ::BailOutAlert(theException);
  68.     }
  69.     catch(exception& ex)        
  70.     {
  71.         DoCatchISOMessageAndStop_AC(ex);
  72.         ::BailOutAlert(ex);
  73.     }
  74.     catch(...)
  75.     {
  76.         DoCatchForeignMessageAndStop_AC();
  77.         ::BailOutAlert();
  78.     }
  79. }
  80.  
  81. //----------------------------------------------------------------------------------------
  82. // End of MDemoDialogs.cp
  83.